package cn.sylinx.horm.proxy.mapper.parse;

import java.util.Map;

public class Namespace {

    private Class<?> mapperClass;

    private String id;

    private String datasource;

    private boolean dynamic = false;

    private Map<String, SqlItem> sqlItems;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDatasource() {
        return datasource;
    }

    public void setDatasource(String datasource) {
        this.datasource = datasource;
    }

    public boolean isDynamic() {
        return dynamic;
    }

    public void setDynamic(boolean dynamic) {
        this.dynamic = dynamic;
    }

    public Map<String, SqlItem> getSqlItems() {
        return sqlItems;
    }

    public void setSqlItems(Map<String, SqlItem> sqlItems) {
        this.sqlItems = sqlItems;
    }

    public Class<?> getMapperClass() {
        return mapperClass;
    }

    public void setMapperClass(Class<?> mapperClass) {
        this.mapperClass = mapperClass;
    }

    @Override
    public String toString() {
        return "Namespace [mapperClass=" + mapperClass + ", id=" + id + ", datasource=" + datasource + ", dynamic="
                + dynamic + ", sqlItems=" + sqlItems + "]";
    }

}
